FROM mongo

MAINTAINER "dev8.cn"

ENV TZ "Asia/Shanghai"
RUN echo "${TZ}" > /etc/timezone \
    && ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime

ADD mongo-init.sh /opt

ENV MONGO_INITDB_ROOT_USERNAME root
ENV MONGO_INITDB_ROOT_PASSWORD "1@#4"

RUN bash /opt/mongo-init.sh

